package test;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.junit.Test;

public class Null {

	private static DateFormat format = new SimpleDateFormat("yyyy-MM-dd");

	private static String formatter = "yyyy-MM-dd";

	@Test
	public  void test1() throws ParseException {
		Date d =new Date();
		d.setYear(d.getYear()-15);
		System.out.println(format.format(d));
	}
	
	@Test
	public void test2(){
		String[] ss={};
		System.out.println(ss.length);
		//ss[2]="333";
		for(int i=0;i<100;i++){
			ss[i]="index"+i;
		}
		//ss.length=100;
		System.out.println(ss.length);
		for(int i=0;i<ss.length;i++){
			System.out.println(ss[i]);
		}
	}

}
